import cookies from 'js-cookie'

const tokenKey = "gm_mall_token"

export function setToken(token) {
    //一天
    return cookies.set(tokenKey, token, {expires: 1})
}

export function getToken() {
    return cookies.get(tokenKey)
}

export function removeToken() {
    return cookies.remove(tokenKey)
}